3.1193 \(\int \frac{(A+B x) (d+e x)}{\sqrt{b x+c x^2}} \, dx\)

Optimal. Leaf size=99 \[ \frac{\tanh ^{-1}\left (\frac{\sqrt{c} x}{\sqrt{b x+c x^2}}\right ) \left (-4 b c (A e+B d)+8 A c^2 d+3 b^2 B e\right )}{4 c^{5/2}}-\frac{\sqrt{b x+c x^2} (-4 c (A e+B d)+3 b B e-2 B c e x)}{4 c^2} \]

[Out]

-((3*b*B*e - 4*c*(B*d + A*e) - 2*B*c*e*x)*Sqrt[b*x + c*x^2])/(4*c^2) + ((8*A*c^2
*d + 3*b^2*B*e - 4*b*c*(B*d + A*e))*ArcTanh[(Sqrt[c]*x)/Sqrt[b*x + c*x^2]])/(4*c
^(5/2))

_______________________________________________________________________________________

Rubi [A]  time = 0.193132, antiderivative size = 99, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 24, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.125 \[ \frac{\tanh ^{-1}\left (\frac{\sqrt{c} x}{\sqrt{b x+c x^2}}\right ) \left (-4 b c (A e+B d)+8 A c^2 d+3 b^2 B e\right )}{4 c^{5/2}}-\frac{\sqrt{b x+c x^2} (-4 c (A e+B d)+3 b B e-2 B c e x)}{4 c^2} \]

Antiderivative was successfully verified.

[In]  Int[((A + B*x)*(d + e*x))/Sqrt[b*x + c*x^2],x]

[Out]

-((3*b*B*e - 4*c*(B*d + A*e) - 2*B*c*e*x)*Sqrt[b*x + c*x^2])/(4*c^2) + ((8*A*c^2
*d + 3*b^2*B*e - 4*b*c*(B*d + A*e))*ArcTanh[(Sqrt[c]*x)/Sqrt[b*x + c*x^2]])/(4*c
^(5/2))

_______________________________________________________________________________________

Rubi in Sympy [A]  time = 13.4998, size = 95, normalized size = 0.96 \[ \frac{\sqrt{b x + c x^{2}} \left (- \frac{3 B b e}{2} + B c e x + 2 c \left (A e + B d\right )\right )}{2 c^{2}} - \frac{\left (- 3 B b^{2} e + 4 c \left (- 2 A c d + b \left (A e + B d\right )\right )\right ) \operatorname{atanh}{\left (\frac{\sqrt{c} x}{\sqrt{b x + c x^{2}}} \right )}}{4 c^{\frac{5}{2}}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  rubi_integrate((B*x+A)*(e*x+d)/(c*x**2+b*x)**(1/2),x)

[Out]

sqrt(b*x + c*x**2)*(-3*B*b*e/2 + B*c*e*x + 2*c*(A*e + B*d))/(2*c**2) - (-3*B*b**
2*e + 4*c*(-2*A*c*d + b*(A*e + B*d)))*atanh(sqrt(c)*x/sqrt(b*x + c*x**2))/(4*c**
(5/2))

_______________________________________________________________________________________

Mathematica [A]  time = 0.171107, size = 120, normalized size = 1.21 \[ \frac{\sqrt{x} \sqrt{b+c x} \log \left (\sqrt{c} \sqrt{b+c x}+c \sqrt{x}\right ) \left (-4 b c (A e+B d)+8 A c^2 d+3 b^2 B e\right )+\sqrt{c} x (b+c x) (4 A c e+B (-3 b e+4 c d+2 c e x))}{4 c^{5/2} \sqrt{x (b+c x)}} \]

Antiderivative was successfully verified.

[In]  Integrate[((A + B*x)*(d + e*x))/Sqrt[b*x + c*x^2],x]

[Out]

(Sqrt[c]*x*(b + c*x)*(4*A*c*e + B*(4*c*d - 3*b*e + 2*c*e*x)) + (8*A*c^2*d + 3*b^
2*B*e - 4*b*c*(B*d + A*e))*Sqrt[x]*Sqrt[b + c*x]*Log[c*Sqrt[x] + Sqrt[c]*Sqrt[b
+ c*x]])/(4*c^(5/2)*Sqrt[x*(b + c*x)])

_______________________________________________________________________________________

Maple [B]  time = 0.011, size = 202, normalized size = 2. \[{Ad\ln \left ({1 \left ({\frac{b}{2}}+cx \right ){\frac{1}{\sqrt{c}}}}+\sqrt{c{x}^{2}+bx} \right ){\frac{1}{\sqrt{c}}}}+{\frac{Ae}{c}\sqrt{c{x}^{2}+bx}}+{\frac{Bd}{c}\sqrt{c{x}^{2}+bx}}-{\frac{Abe}{2}\ln \left ({1 \left ({\frac{b}{2}}+cx \right ){\frac{1}{\sqrt{c}}}}+\sqrt{c{x}^{2}+bx} \right ){c}^{-{\frac{3}{2}}}}-{\frac{Bbd}{2}\ln \left ({1 \left ({\frac{b}{2}}+cx \right ){\frac{1}{\sqrt{c}}}}+\sqrt{c{x}^{2}+bx} \right ){c}^{-{\frac{3}{2}}}}+{\frac{Bex}{2\,c}\sqrt{c{x}^{2}+bx}}-{\frac{3\,bBe}{4\,{c}^{2}}\sqrt{c{x}^{2}+bx}}+{\frac{3\,{b}^{2}Be}{8}\ln \left ({1 \left ({\frac{b}{2}}+cx \right ){\frac{1}{\sqrt{c}}}}+\sqrt{c{x}^{2}+bx} \right ){c}^{-{\frac{5}{2}}}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  int((B*x+A)*(e*x+d)/(c*x^2+b*x)^(1/2),x)

[Out]

A*d*ln((1/2*b+c*x)/c^(1/2)+(c*x^2+b*x)^(1/2))/c^(1/2)+1/c*(c*x^2+b*x)^(1/2)*A*e+
1/c*(c*x^2+b*x)^(1/2)*B*d-1/2*b/c^(3/2)*ln((1/2*b+c*x)/c^(1/2)+(c*x^2+b*x)^(1/2)
)*A*e-1/2*b/c^(3/2)*ln((1/2*b+c*x)/c^(1/2)+(c*x^2+b*x)^(1/2))*B*d+1/2*B*e*x/c*(c
*x^2+b*x)^(1/2)-3/4*B*e*b/c^2*(c*x^2+b*x)^(1/2)+3/8*B*e*b^2/c^(5/2)*ln((1/2*b+c*
x)/c^(1/2)+(c*x^2+b*x)^(1/2))

_______________________________________________________________________________________

Maxima [F]  time = 0., size = 0, normalized size = 0. \[ \text{Exception raised: ValueError} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((B*x + A)*(e*x + d)/sqrt(c*x^2 + b*x),x, algorithm="maxima")

[Out]

Exception raised: ValueError

_______________________________________________________________________________________

Fricas [A]  time = 0.344534, size = 1, normalized size = 0.01 \[ \left [\frac{2 \,{\left (2 \, B c e x + 4 \, B c d -{\left (3 \, B b - 4 \, A c\right )} e\right )} \sqrt{c x^{2} + b x} \sqrt{c} +{\left (4 \,{\left (B b c - 2 \, A c^{2}\right )} d -{\left (3 \, B b^{2} - 4 \, A b c\right )} e\right )} \log \left ({\left (2 \, c x + b\right )} \sqrt{c} - 2 \, \sqrt{c x^{2} + b x} c\right )}{8 \, c^{\frac{5}{2}}}, \frac{{\left (2 \, B c e x + 4 \, B c d -{\left (3 \, B b - 4 \, A c\right )} e\right )} \sqrt{c x^{2} + b x} \sqrt{-c} -{\left (4 \,{\left (B b c - 2 \, A c^{2}\right )} d -{\left (3 \, B b^{2} - 4 \, A b c\right )} e\right )} \arctan \left (\frac{\sqrt{c x^{2} + b x} \sqrt{-c}}{c x}\right )}{4 \, \sqrt{-c} c^{2}}\right ] \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((B*x + A)*(e*x + d)/sqrt(c*x^2 + b*x),x, algorithm="fricas")

[Out]

[1/8*(2*(2*B*c*e*x + 4*B*c*d - (3*B*b - 4*A*c)*e)*sqrt(c*x^2 + b*x)*sqrt(c) + (4
*(B*b*c - 2*A*c^2)*d - (3*B*b^2 - 4*A*b*c)*e)*log((2*c*x + b)*sqrt(c) - 2*sqrt(c
*x^2 + b*x)*c))/c^(5/2), 1/4*((2*B*c*e*x + 4*B*c*d - (3*B*b - 4*A*c)*e)*sqrt(c*x
^2 + b*x)*sqrt(-c) - (4*(B*b*c - 2*A*c^2)*d - (3*B*b^2 - 4*A*b*c)*e)*arctan(sqrt
(c*x^2 + b*x)*sqrt(-c)/(c*x)))/(sqrt(-c)*c^2)]

_______________________________________________________________________________________

Sympy [F]  time = 0., size = 0, normalized size = 0. \[ \int \frac{\left (A + B x\right ) \left (d + e x\right )}{\sqrt{x \left (b + c x\right )}}\, dx \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((B*x+A)*(e*x+d)/(c*x**2+b*x)**(1/2),x)

[Out]

Integral((A + B*x)*(d + e*x)/sqrt(x*(b + c*x)), x)

_______________________________________________________________________________________

GIAC/XCAS [A]  time = 0.315339, size = 149, normalized size = 1.51 \[ \frac{1}{4} \, \sqrt{c x^{2} + b x}{\left (\frac{2 \, B x e}{c} + \frac{4 \, B c d - 3 \, B b e + 4 \, A c e}{c^{2}}\right )} + \frac{{\left (4 \, B b c d - 8 \, A c^{2} d - 3 \, B b^{2} e + 4 \, A b c e\right )}{\rm ln}\left ({\left | -2 \,{\left (\sqrt{c} x - \sqrt{c x^{2} + b x}\right )} \sqrt{c} - b \right |}\right )}{8 \, c^{\frac{5}{2}}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((B*x + A)*(e*x + d)/sqrt(c*x^2 + b*x),x, algorithm="giac")

[Out]

1/4*sqrt(c*x^2 + b*x)*(2*B*x*e/c + (4*B*c*d - 3*B*b*e + 4*A*c*e)/c^2) + 1/8*(4*B
*b*c*d - 8*A*c^2*d - 3*B*b^2*e + 4*A*b*c*e)*ln(abs(-2*(sqrt(c)*x - sqrt(c*x^2 +
b*x))*sqrt(c) - b))/c^(5/2)